package com.hllxd.hism.framework.httprpc.service;


import com.alibaba.fastjson.JSONObject;

/**
 * author: xiyong.lxy
 * date: 2020-10-24 20:16
 */
public class PDRIVER_OBJECT {

    public Object object;
    public String userID;
    public String traceID;

    public PDRIVER_OBJECT(Object o) {
        object = o;
    }

    public <T> T driverObject(Class<T> dataType) {
        return ((JSONObject)object).toJavaObject(dataType);
    }

    @Override
    public String toString() {
        return object.toString();
    }
}
